import React from 'react'

import Item from './Item'

// import './style.scss'

class OrderList extends React.Component{
    constructor(props, context){
        super(props, context)
    }
    render() {
        const data = this.props.data
        const submitComent = this.props.submitComent
        return (
            <div>
                {
                    data.map((item, index) => {
                        return <Item submitComent={submitComent} key={index} data={item}></Item>
                    })
                }
            </div>
        )
    }
    componentDidMount() {
    }
}

export default OrderList